home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / BARNET / FREENET / JEFFRAY / COPYSOCK / !CopySocks / !Help next >
Text File  |  1996-03-07  |  2KB  |  62 lines

  1.  
  2.  Copy Socks 0.01 (7th March 1996)
  3.  by
  4.  Ian Jeffray of Riscy Developments. (ianj@pobox.com)
  5.  
  6.  ---------------------------------------------------
  7.  
  8.  Hi all,
  9.  
  10.  I promised this a week or so ago, and I apologise for not uploading it sooner,
  11.  but it was in BASIC and was a MESS.
  12.  
  13.  What I really want to do is create a small, event driven module
  14.  from this rubbish, but time and experience prevent that right now. :(
  15.  
  16.  Should be easy enough to set up; just edit the !Run file.  The syntax
  17.  of these lines is:
  18.  
  19.  StartSocket <in socket> <out socket> <machine>
  20.  
  21.  So for example, my 'internet visible' machine here at Paradise is
  22.  paradise1.compulink.co.uk  and I have a machine called a310 (!) which
  23.  I want people to be able to access the web server on.  I set up the
  24.  IP masquerading and firewalling with 'ipfw' as documented in the
  25.  FreeNet docs (Yup, sorry, this program's of no use to Acorn/ANT !Internet
  26.  users... blame Acorn) so that the a310 an 'see' the internet, and the
  27.  web address  http://paradise1.compulink.co.uk/  will actually
  28.  get to port 80 on the a310, which will serve the connection, rather than
  29.  having a web server on 'paradise1' itself.  Nice!   The set up for this:
  30.  
  31.  StartSocket 80 80 a310
  32.  
  33.  Simple eh?    Whats probably more useful for folks is to have something
  34.  like
  35.  
  36.  StartSocket 8000 80 a310
  37.  
  38.  so that an address like  http://paradise1.compulink.co.uk:8000/ will
  39.  get to the A310, and you can ALSO have a web server on 'paradise1' :)
  40.  
  41.  I have used FTP (ports 20 and 21 mapped from 2020, 2021) and also mail
  42.  (port 25 mapped straight thru')
  43.  
  44.  
  45.  Please note that as the program re-executes itself when accepting a
  46.  connection, the location of this application must be constant when in use,
  47.  and must be readable.   I'm trying (!) to implement unix fork() and until
  48.  that time, or until I write this as a module, I'm afraid this is the only
  49.  way to duplicate code on the arc.  :(
  50.  
  51.  
  52.  If you're having problems, or have ANY comments about this, please mail me
  53.  on ianj@pobox.com, (or ian_jeffray@mentorg.com for fast daytime response ;)
  54.  
  55.  Note the 'official' site for this software is:
  56.  http://www.foobar.co.uk/dialin/ganymede/riscy/
  57.  
  58.  Cheers
  59.  
  60.  Ian.
  61.  
  62.